package com.ruoyi.crm.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 采购退款单对象 refund_purchase
 *
 * @author ruoyi
 * @date 2021-08-31
 */
public class RefundPurchase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private String id;

    /** 采购退款单编号 */
    @Excel(name = "采购退款单编号")
    private String refundNo;

    /** 供应商名称 */
    @Excel(name = "供应商名称")
    private String supplierName;

    /** 退款方式 */
    @Excel(name = "退款方式")
    private String refundType;

    /** 退款日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "退款日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date refundDate;

    /** 账户 */
    @Excel(name = "账户")
    private String account;

    /** 采购退货单 */
    @Excel(name = "采购退货单")
    private String returnNo;

    /** 负责人 */
    @Excel(name = "负责人")
    private String follower;

    /** 顾客产品信息信息 */
    private List<CustomerProduct> customerProductList;

    public void setId(String id)
    {
        this.id = id;
    }

    public String getId()
    {
        return id;
    }
    public void setRefundNo(String refundNo)
    {
        this.refundNo = refundNo;
    }

    public String getRefundNo()
    {
        return refundNo;
    }
    public void setSupplierName(String supplierName)
    {
        this.supplierName = supplierName;
    }

    public String getSupplierName()
    {
        return supplierName;
    }
    public void setRefundType(String refundType)
    {
        this.refundType = refundType;
    }

    public String getRefundType()
    {
        return refundType;
    }
    public void setRefundDate(Date refundDate)
    {
        this.refundDate = refundDate;
    }

    public Date getRefundDate()
    {
        return refundDate;
    }
    public void setAccount(String account)
    {
        this.account = account;
    }

    public String getAccount()
    {
        return account;
    }
    public void setReturnNo(String returnNo)
    {
        this.returnNo = returnNo;
    }

    public String getReturnNo()
    {
        return returnNo;
    }
    public void setFollower(String follower)
    {
        this.follower = follower;
    }

    public String getFollower()
    {
        return follower;
    }

    public List<CustomerProduct> getCustomerProductList()
    {
        return customerProductList;
    }

    public void setCustomerProductList(List<CustomerProduct> customerProductList)
    {
        this.customerProductList = customerProductList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("refundNo", getRefundNo())
                .append("supplierName", getSupplierName())
                .append("refundType", getRefundType())
                .append("refundDate", getRefundDate())
                .append("account", getAccount())
                .append("returnNo", getReturnNo())
                .append("follower", getFollower())
                .append("updateTime", getUpdateTime())
                .append("customerProductList", getCustomerProductList())
                .toString();
    }
}